package com.crm.vo;

import cn.hutool.core.bean.BeanUtil;
import com.crm.entity.CrmActivity;
import com.crm.util.UUIDUtils;
import lombok.Data;

/**
 * @author junxian.dou
 * @Package：com.crm.vo
 * @Project：springboot-crm
 * @name：SysActivity
 * @Date：2024/12/13 16:32
 * @Filename：SysActivity
 * @verson 1.0.0
 * @desc
 */
@Data
public class SysActivity {

    private String id;

    private String owner;

    private String name;

    private String startDate;

    private String endDate;

    private String cost;

    private String description;

    private String createTime;

    private String createBy;

    private String editTime;

    private String editBy;

    public CrmActivity getCrmActivity(){
        CrmActivity crmActivity = new CrmActivity();
        crmActivity.setId(this.id);
        crmActivity.setOwner(this.owner);
        crmActivity.setName(this.name);
        crmActivity.setStartDate(this.startDate);
        crmActivity.setEndDate(this.endDate);
        crmActivity.setCost(this.cost);
        crmActivity.setDescription(this.description);
        return crmActivity;
    }
}
